﻿using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Resolve;
using GammaJul.ReSharper.GammaXaml.Psi.Xaml;

namespace GammaJul.ReSharper.GammaXaml.Psi.Resolve {

	public class DpFieldNameFilter : SimpleSymbolFilterWithErrorType {

		public static readonly DpFieldNameFilter Instance = new DpFieldNameFilter();

		public override bool Accepts(IDeclaredElement declaredElement, ISubstitution substitution) {
			return declaredElement.ShortName.IsDpFieldName();
		}

		private DpFieldNameFilter()
			: base(ResolveErrorType.INCORRECT_SIGNATURE) {
		}

	}

}